#include "StdAfx.h"
#include "BankChannelModel.h"


CBankChannelModel::CBankChannelModel(void)
{
	m_id = 0;
	m_professionType = 0;
}


CBankChannelModel::~CBankChannelModel(void)
{
}

void CBankChannelModel::parseFromJson(Json::Value& jsonValue)
{
	if (!jsonValue["id"].isNull())
	{
		m_id = jsonValue["id"].asInt();
	}
	if (!jsonValue["professionType"].isNull())
	{
		m_professionType = jsonValue["professionType"].asInt();
	}
	
	CUtils::getJsonStringField(jsonValue, "interestRate", m_interestRate);
	CUtils::getJsonStringField(jsonValue, "bankName", m_bankName);

}
